package com.sdy.dcsb.biz.service.impl;

import com.sdy.dcsb.biz.mapper.EsbServiceConsumerMapper;
import com.sdy.dcsb.biz.model.EsbServiceConsumer;
import com.sdy.dcsb.biz.model.EsbServiceConsumerJoint;
import com.sdy.dcsb.biz.service.EsbServiceConsumerService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 * IP授权记录信息表 服务实现类
 * </p>
 *
 * @author fb
 * @since 2019-09-29
 */
@Slf4j
@Service
public class EsbServiceConsumerServiceImpl extends BaseServiceImpl<EsbServiceConsumer> implements EsbServiceConsumerService {
    @Autowired
    private EsbServiceConsumerMapper esbServiceConsumerMapper;
    @Autowired
    private EsbServiceConsumerService esbServiceConsumerService;

    @Override
    public List<EsbServiceConsumerJoint> findServiceConsumerIp(Integer serviceid, String ip, String status, Integer current, Integer size) {
        return esbServiceConsumerMapper.findServiceConsumerIp(serviceid, ip, status, current, size);
    }
    @Override
    public List<EsbServiceConsumerJoint> findServiceConsumerIpCount(Integer serviceid, String ip, String status) {
        return esbServiceConsumerMapper.findServiceConsumerIpCount(serviceid, ip, status);
    }
}
